
// 本文件将会被编译为lib  
// 编译命令： rustc --crate-type=lib rary.rs
// 生成： library.rlib  文件

pub fn public_function() {
    println!("called rary's `public_function()`");
}

fn private_function() {
    println!("called rary's `private_function()`");
}

pub fn indirect_access() {
    print!("called rary's `indirect_access()`, that\n> ");

    private_function();
}

